import request from "../utils/request"
import { mockTagList } from '../utils/mock-data'

// 是否使用模拟数据
const USE_MOCK = true;

/**
 * 获取所有标签的文章数量
 * @returns promise
 */
function getTagCountList() {
    if (USE_MOCK) {
        return new Promise(resolve => {
            setTimeout(() => {
                resolve(mockTagList);
            }, 100);
        });
    }
    return request.get("/tag/tagCountList")
}


export { getTagCountList }